﻿using FHJFPro.Base;
using FHJFPro.Const;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FHJFPro.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    [ApiExplorerSettings(GroupName = GroupingAPI.GroupName_v2)]
    public class TestController : FHJFProController
    {
        [HttpPost]
        [Route("Create")]
        public async Task<ResponseResult<string>> Create(string msg)
        {
            var result = new ResponseResult<string>();
            result.IsSuccess(msg);
            return await Task.FromResult(result);
        }

        [HttpPut]
        [Route("Update")]
        public async Task<ResponseResult<string>> Update(string msg)
        {
            var result = new ResponseResult<string>();
            result.IsSuccess(msg);
            return await Task.FromResult(result);
        }

        [HttpDelete]
        [Route("Delete")]
        public async Task<ResponseResult<string>> Delete(string msg)
        {
            var result = new ResponseResult<string>();
            result.IsSuccess(msg);
            return await Task.FromResult(result);
        }

        [HttpGet]
        [Route("Get")]
        public async Task<ResponseResult<string>> Get(string msg)
        {
            var result = new ResponseResult<string>();
            result.IsSuccess(msg);
            return await Task.FromResult(result);
        }
    }
}
